<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ page import="com.bean.UserForm" %>
<%
request.setCharacterEncoding("utf-8");
 %>
 <jsp:useBean id="userForm" class="com.bean.UserForm" scope="page" />
 <jsp:setProperty property="*" name="userForm"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>用户信息</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  <h1>用户显示</h1><br>
 <table>
    <tr>
    <td>用户名：</td>
    <td>${userForm.username }</td>
    </tr>
    <tr>
    <td>密码：</td>
    <td>${userForm.pwd }</td>
    </tr>
    <tr>
    <td>性别：</td>
    <td>${userForm.sex }</td>
    </tr>
    <tr>
    <td>爱好：</td>
    <td>${userForm.affect[0] }${userForm.affect[1] }${userForm.affect[2] }${userForm.affect[3] }
    </td>
    </tr>
    <tr>
    <td></td>
    <td><input name="button" type="button" value="返回" onclick="window.location.href='index.jsp'"></td>
    </tr>
    </table>
  </body>
</html>
